let code = {};
code.wfd = {
    "success": "0",
    "msg": "请求成功",
    "data": {
        "wfInfoId": null,
        "wfTypeId": "8a929ba6623de2e201623de2e2340000",
        "wfTypeName": null,
        "wfBizDictId": "8a92037b621f71d601621f71d6a7001d",
        "wfBizDictName": null,
        "wfName": "项目立项流程",
        "height": 300,
        "width": 800,
        "wfDesc": "用于项目立项审批",
        "createUserId": "ff808081312833f601314a337a06266f",
        "createUserName": "詹发超",
        "bizId": null,
        "updateTime": "2018-03-13 21:56:00",
        "createTime": "2018-03-13 21:56:00",
        "wfNodeItem": null,
        "wfNodeItemList": [{
            "nodeId": "8a92037b62231f9b0163331f9b67111c",
            "nodeName": "技术发展部",
            "nodeType": "1",
            "formKey": "establish_pj_minist_tecd",
            "nodeDesc": "技术发展部确认审批",
            "precondition": "0",
            "postcondition": "",
            "remindType": null,
            "participantType": null,
            "participantId": null,
            "participantName": null,
            "wfInfoId": null,
            "wfBizDictId": "8a92037b621f71d601621f71d6a7001d",
            "parentNodeId": null,
            "handleUserId": "",
            "handleUserName": "",
            "bizId": null,
            "state": "0",
            "approvalOpition": null,
            "approvalTime": null,
            "createTime": "2018-03-13 21:56:00",
            "childNodeList": null,
            "parentIdList": null,
            "xcoordinate": 181,
            "ycoordinate": 170
        }, {
            "nodeId": "8a92037b62231f9b0162231f9b67001d",
            "nodeName": "开始",
            "nodeType": "0",
            "formKey": "establish_pj_start",
            "nodeDesc": "项目立项开始",
            "precondition": "1",
            "postcondition": "",
            "remindType": null,
            "participantType": null,
            "participantId": null,
            "participantName": null,
            "wfInfoId": null,
            "wfBizDictId": "8a92037b621f71d601621f71d6a7001d",
            "parentNodeId": null,
            "handleUserId": null,
            "handleUserName": null,
            "bizId": null,
            "state": "1",
            "approvalOpition": null,
            "approvalTime": null,
            "createTime": "2018-03-13 21:56:00",
            "childNodeList": null,
            "parentIdList": null,
            "xcoordinate": 45,
            "ycoordinate": 225
        }, {
            "nodeId": "8a92037b62231f9b0162231f9b67001c",
            "nodeName": "销售经理确认",
            "nodeType": "1",
            "formKey": "establish_pj_seller",
            "nodeDesc": "销售经理确认审批",
            "precondition": "0",
            "postcondition": "",
            "remindType": null,
            "participantType": null,
            "participantId": null,
            "participantName": null,
            "wfInfoId": null,
            "wfBizDictId": "8a92037b621f71d601621f71d6a7001d",
            "parentNodeId": null,
            "handleUserId": null,
            "handleUserName": null,
            "bizId": null,
            "state": "0",
            "approvalOpition": null,
            "approvalTime": null,
            "createTime": "2018-03-13 21:56:00",
            "childNodeList": null,
            "parentIdList": null,
            "xcoordinate": 181,
            "ycoordinate": 85
        }, {
            "nodeId": "8a92037b62231f9b0162231f9b67001b",
            "nodeName": "项目施工部门",
            "nodeType": "1",
            "formKey": "establish_pj_impl",
            "nodeDesc": "项目施工部门确认",
            "precondition": "2",
            "postcondition": "",
            "remindType": null,
            "participantType": null,
            "participantId": null,
            "participantName": null,
            "wfInfoId": null,
            "wfBizDictId": "8a92037b621f71d601621f71d6a7001d",
            "parentNodeId": null,
            "handleUserId": null,
            "handleUserName": null,
            "bizId": null,
            "state": "0",
            "approvalOpition": null,
            "approvalTime": null,
            "createTime": "2018-03-13 21:56:00",
            "childNodeList": null,
            "parentIdList": null,
            "xcoordinate": 317,
            "ycoordinate": 225
        }, {
            "nodeId": "8a92037b62231f9b0162231f9b67001a",
            "nodeName": "办公室",
            "nodeType": "1",
            "formKey": "establish_pj_office",
            "nodeDesc": "办公室确认审批",
            "precondition": "0",
            "postcondition": "",
            "remindType": null,
            "participantType": null,
            "participantId": null,
            "participantName": null,
            "wfInfoId": null,
            "wfBizDictId": "8a92037b621f71d601621f71d6a7001d",
            "parentNodeId": null,
            "handleUserId": "",
            "handleUserName": "",
            "bizId": null,
            "state": "0",
            "approvalOpition": null,
            "approvalTime": null,
            "createTime": "2018-03-13 21:56:00",
            "childNodeList": null,
            "parentIdList": null,
            "xcoordinate": 453,
            "ycoordinate": 85
        }, {
            "nodeId": "8a92037b62231f9b0162231f9b670019",
            "nodeName": "企业管理部",
            "nodeType": "1",
            "formKey": "establish_pj_busM",
            "nodeDesc": "企业管理部确认审批",
            "precondition": "0",
            "postcondition": "",
            "remindType": null,
            "participantType": null,
            "participantId": null,
            "participantName": null,
            "wfInfoId": null,
            "wfBizDictId": "8a92037b621f71d601621f71d6a7001d",
            "parentNodeId": null,
            "handleUserId": "",
            "handleUserName": "",
            "bizId": null,
            "state": "0",
            "approvalOpition": null,
            "approvalTime": null,
            "createTime": "2018-03-13 21:56:00",
            "childNodeList": null,
            "parentIdList": null,
            "xcoordinate": 589,
            "ycoordinate": 225
        }, {
            "nodeId": "8a92037b62231f9b0162231f9b670018",
            "nodeName": "结束",
            "nodeType": "2",
            "formKey": "establish_pj_end",
            "nodeDesc": "项目立项结束",
            "precondition": "0",
            "postcondition": "",
            "remindType": null,
            "participantType": null,
            "participantId": null,
            "participantName": null,
            "wfInfoId": null,
            "wfBizDictId": "8a92037b621f71d601621f71d6a7001d",
            "parentNodeId": null,
            "handleUserId": null,
            "handleUserName": null,
            "bizId": null,
            "state": "0",
            "approvalOpition": null,
            "approvalTime": null,
            "createTime": "2018-03-13 21:56:00",
            "childNodeList": null,
            "parentIdList": null,
            "xcoordinate": 755,
            "ycoordinate": 225
        }, {
            "nodeId": "8a92037b62231f9b0162231f9b672229",
            "nodeName": "事业部",
            "nodeType": "1",
            "formKey": "establish_pj_division",
            "nodeDesc": "事业部确认审批",
            "precondition": "2",
            "postcondition": "",
            "remindType": null,
            "participantType": null,
            "participantId": null,
            "participantName": null,
            "wfInfoId": null,
            "wfBizDictId": "8a92037b621f71d601621f71d6a7001d",
            "parentNodeId": null,
            "handleUserId": null,
            "handleUserName": null,
            "bizId": null,
            "state": "0",
            "approvalOpition": null,
            "approvalTime": null,
            "createTime": "2018-03-13 21:56:00",
            "childNodeList": null,
            "parentIdList": null,
            "xcoordinate": 453,
            "ycoordinate": 170
        }],
        "wfNodeRelItemList": [{
            "wfNodeRelId": null,
            "wfInfoId": null,
            "nodeId": "8a92037b62231f9b0162231f9b67001d",
            "parentNodeId": "-1",
            "state": "1"
        }, {
            "wfNodeRelId": null,
            "wfInfoId": null,
            "nodeId": "8a92037b62231f9b0162231f9b67001c",
            "parentNodeId": "8a92037b62231f9b0162231f9b67001d",
            "state": "0"
        }, {
            "wfNodeRelId": null,
            "wfInfoId": null,
            "nodeId": "8a92037b62231f9b0162231f9b672229",
            "parentNodeId": "8a92037b62231f9b0162231f9b67001b",
            "state": "0"
        }, {
            "wfNodeRelId": null,
            "wfInfoId": null,
            "nodeId": "8a92037b62231f9b0162231f9b670019",
            "parentNodeId": "8a92037b62231f9b0162231f9b67001b",
            "state": "0"
        }, {
            "wfNodeRelId": null,
            "wfInfoId": null,
            "nodeId": "8a92037b62231f9b0162231f9b670019",
            "parentNodeId": "8a92037b62231f9b0162231f9b672229",
            "state": "0"
        }, {
            "wfNodeRelId": null,
            "wfInfoId": null,
            "nodeId": "8a92037b62231f9b0162231f9b670018",
            "parentNodeId": "8a92037b62231f9b0162231f9b670019",
            "state": "0"
        }, {
            "wfNodeRelId": null,
            "wfInfoId": null,
            "nodeId": "8a92037b62231f9b0162231f9b67001b",
            "parentNodeId": "8a92037b62231f9b0162231f9b67001c",
            "state": "0"
        }, {
            "wfNodeRelId": null,
            "wfInfoId": null,
            "nodeId": "8a92037b62231f9b0162231f9b67001a",
            "parentNodeId": "8a92037b62231f9b0162231f9b672229",
            "state": "0"
        }, {
            "wfNodeRelId": null,
            "wfInfoId": null,
            "nodeId": "8a92037b62231f9b0162231f9b670019",
            "parentNodeId": "8a92037b62231f9b0162231f9b67001a",
            "state": "0"
        }, {
            "wfNodeRelId": null,
            "wfInfoId": null,
            "nodeId": "8a92037b62231f9b0162231f9b67001b",
            "parentNodeId": "8a92037b62231f9b0162231f9b67001d",
            "state": "0"
        }, {
            "wfNodeRelId": null,
            "wfInfoId": null,
            "nodeId": "8a92037b62231f9b0162231f9b67001a",
            "parentNodeId": "8a92037b62231f9b0162231f9b67001b",
            "state": "0"
        }, {
            "wfNodeRelId": null,
            "wfInfoId": null,
            "nodeId": "8a92037b62231f9b0163331f9b67111c",
            "parentNodeId": "8a92037b62231f9b0162231f9b67001d",
            "state": "0"
        }, {
            "wfNodeRelId": null,
            "wfInfoId": null,
            "nodeId": "8a92037b62231f9b0162231f9b67001b",
            "parentNodeId": "8a92037b62231f9b0163331f9b67111c",
            "state": "0"
        }]
    }
};
code.base = `

<template>
    <div>
        <workFlow
            tmplId="8a92037b621f71d601621f71d6a7001d"
            :startSubmit="formSubmitStart"
            @on-submit="formSubmitExec"
            @on-error="formSubmitError"
        />
    </div>
</template>

<script>
export default {
    name: 'WorkFlow',
    data() {
        return {
            formSubmitStart: {
                start: false
            },
            handlerDefault: {
                
            },
        }
    },
    components: {
        workFlow,
    },
    mounted(){
    
    },
    methods: {
        formSubmitExec(item) {
         console.log(item);
        },
        formSubmitError(obj) {
            this.formSubmitStart = {
                start: false
            };
            console.log(obj.msg);
        },
    }
}
</script>

`

code.biz = {
    "success": "0",
    "msg": "请求成功",
    "data": {
        "wfInfoId": "ff80808164fe39160164fe95e0b60035",
        "wfTypeId": "8a929ba6623de2e201623de2e2340000",
        "wfTypeName": null,
        "wfBizDictId": "8a929ba662d28e280162d28e28340000",
        "wfBizDictName": null,
        "wfName": "项目变更审批流程",
        "height": 310,
        "width": 800,
        "wfDesc": "用于项目变更审批",
        "createUserId": "ff80808136a7ee150136ab36d2cc207d",
        "createUserName": "姜有建",
        "bizId": "ff80808164fe95e00164fe95e0860000",
        "updateTime": "2018-08-03 15:01:09",
        "createTime": "2018-08-03 14:59:52",
        "wfNodeItem": null,
        "wfNodeItemList": [{
            "nodeId": "8a929ba662d28e280162d28e28340003",
            "nodeName": "开始",
            "nodeType": "0",
            "formKey": "pj_change_start",
            "nodeDesc": "项目变更审批开始",
            "precondition": "0",
            "postcondition": "",
            "remindType": null,
            "participantType": null,
            "participantId": null,
            "participantName": null,
            "wfInfoId": "ff80808164fe39160164fe95e0b60035",
            "wfBizDictId": "8a929ba662d28e280162d28e28340000",
            "parentNodeId": null,
            "handleUserId": "ff80808136a7ee150136ab36d2cc207d",
            "handleUserName": "姜有建",
            "bizId": "ff80808164fe95e00164fe95e0860000",
            "state": "2",
            "approvalOpition": null,
            "approvalTime": null,
            "createTime": "2018-08-03 14:59:52",
            "childNodeList": null,
            "parentIdList": null,
            "xcoordinate": 45,
            "ycoordinate": 145
        }, {
            "nodeId": "8a929ba662d28e280162d28e28340005",
            "nodeName": "施工部门",
            "nodeType": "1",
            "formKey": "pj_change_implement",
            "nodeDesc": "施工部门经理审批",
            "precondition": "0",
            "postcondition": "",
            "remindType": null,
            "participantType": null,
            "participantId": null,
            "participantName": null,
            "wfInfoId": "ff80808164fe39160164fe95e0b60035",
            "wfBizDictId": "8a929ba662d28e280162d28e28340000",
            "parentNodeId": null,
            "handleUserId": "ff80808136a7ee150136ab36d2cc207d",
            "handleUserName": "姜有建",
            "bizId": "ff80808164fe95e00164fe95e0860000",
            "state": "2",
            "approvalOpition": "范围收费VIP",
            "approvalTime": "2018-08-03 15:00:39",
            "createTime": "2018-08-03 14:59:52",
            "childNodeList": null,
            "parentIdList": null,
            "xcoordinate": 158,
            "ycoordinate": 145
        }, {
            "nodeId": "8a929ba662d28e280162d28e28340007",
            "nodeName": "事业部总经理",
            "nodeType": "1",
            "formKey": "pj_change_enterprise",
            "nodeDesc": "施工部门事业部总经理审批",
            "precondition": "1",
            "postcondition": "",
            "remindType": null,
            "participantType": null,
            "participantId": null,
            "participantName": null,
            "wfInfoId": "ff80808164fe39160164fe95e0b60035",
            "wfBizDictId": "8a929ba662d28e280162d28e28340000",
            "parentNodeId": null,
            "handleUserId": "ff80808136a7ee150136ab36d2cc207d",
            "handleUserName": "姜有建",
            "bizId": "ff80808164fe95e00164fe95e0860000",
            "state": "2",
            "approvalOpition": "11sdfghj",
            "approvalTime": "2018-08-03 15:00:49",
            "createTime": "2018-08-03 14:59:52",
            "childNodeList": null,
            "parentIdList": null,
            "xcoordinate": 271,
            "ycoordinate": 145
        }, {
            "nodeId": "8a929ba662d28e280162d28e28350009",
            "nodeName": "销售部",
            "nodeType": "1",
            "formKey": "pj_change_sell",
            "nodeDesc": "销售部门经理审批",
            "precondition": "0",
            "postcondition": "",
            "remindType": null,
            "participantType": null,
            "participantId": null,
            "participantName": null,
            "wfInfoId": "ff80808164fe39160164fe95e0b60035",
            "wfBizDictId": "8a929ba662d28e280162d28e28340000",
            "parentNodeId": null,
            "handleUserId": null,
            "handleUserName": null,
            "bizId": "ff80808164fe95e00164fe95e0860000",
            "state": "5",
            "approvalOpition": null,
            "approvalTime": null,
            "createTime": "2018-08-03 14:59:52",
            "childNodeList": null,
            "parentIdList": null,
            "xcoordinate": 384,
            "ycoordinate": 55
        }, {
            "nodeId": "8a929ba662d28e280162d28e2835000b",
            "nodeName": "财务部",
            "nodeType": "1",
            "formKey": "pj_change_finance",
            "nodeDesc": "财务部经理审批",
            "precondition": "0",
            "postcondition": "",
            "remindType": null,
            "participantType": null,
            "participantId": null,
            "participantName": null,
            "wfInfoId": "ff80808164fe39160164fe95e0b60035",
            "wfBizDictId": "8a929ba662d28e280162d28e28340000",
            "parentNodeId": null,
            "handleUserId": "ff80808136a7ee150136ab36d2cc207d",
            "handleUserName": "姜有建",
            "bizId": "ff80808164fe95e00164fe95e0860000",
            "state": "2",
            "approvalOpition": "同意",
            "approvalTime": "2018-08-03 15:00:57",
            "createTime": "2018-08-03 14:59:52",
            "childNodeList": null,
            "parentIdList": null,
            "xcoordinate": 384,
            "ycoordinate": 235
        }, {
            "nodeId": "8a929ba662d28e280162d28e2836000f",
            "nodeName": "企业管理部",
            "nodeType": "1",
            "formKey": "pj_change_busM",
            "nodeDesc": "企业管理部经理审批",
            "precondition": "1",
            "postcondition": "",
            "remindType": null,
            "participantType": null,
            "participantId": null,
            "participantName": null,
            "wfInfoId": "ff80808164fe39160164fe95e0b60035",
            "wfBizDictId": "8a929ba662d28e280162d28e28340000",
            "parentNodeId": null,
            "handleUserId": "ff80808136a7ee150136ab36d2cc207d",
            "handleUserName": "姜有建",
            "bizId": "ff80808164fe95e00164fe95e0860000",
            "state": "2",
            "approvalOpition": "不同意",
            "approvalTime": "2018-08-03 15:01:05",
            "createTime": "2018-08-03 14:59:52",
            "childNodeList": null,
            "parentIdList": null,
            "xcoordinate": 497,
            "ycoordinate": 145
        }, {
            "nodeId": "8a929ba662d28e280162d28e28360011",
            "nodeName": "施工部门协管副总",
            "nodeType": "1",
            "formKey": "pj_change_impl_assLeader",
            "nodeDesc": "施工部门协管副总审批",
            "precondition": "0",
            "postcondition": "",
            "remindType": null,
            "participantType": null,
            "participantId": null,
            "participantName": null,
            "wfInfoId": "ff80808164fe39160164fe95e0b60035",
            "wfBizDictId": "8a929ba662d28e280162d28e28340000",
            "parentNodeId": null,
            "handleUserId": "ff80808136a7ee150136ab36d2cc207d",
            "handleUserName": "姜有建",
            "bizId": "ff80808164fe95e00164fe95e0860000",
            "state": "2",
            "approvalOpition": "11sdfghj",
            "approvalTime": "2018-08-03 15:01:09",
            "createTime": "2018-08-03 14:59:52",
            "childNodeList": null,
            "parentIdList": null,
            "xcoordinate": 610,
            "ycoordinate": 55
        }, {
            "nodeId": "8a929ba662d28e280162d28e283e0013",
            "nodeName": "结束",
            "nodeType": "2",
            "formKey": "pj_change_end",
            "nodeDesc": "项目变更审批结束",
            "precondition": "0",
            "postcondition": "",
            "remindType": null,
            "participantType": null,
            "participantId": null,
            "participantName": null,
            "wfInfoId": "ff80808164fe39160164fe95e0b60035",
            "wfBizDictId": "8a929ba662d28e280162d28e28340000",
            "parentNodeId": null,
            "handleUserId": "SYS",
            "handleUserName": "SYS",
            "bizId": "ff80808164fe95e00164fe95e0860000",
            "state": "2",
            "approvalOpition": null,
            "approvalTime": null,
            "createTime": "2018-08-03 14:59:52",
            "childNodeList": null,
            "parentIdList": null,
            "xcoordinate": 723,
            "ycoordinate": 145
        }],
        "wfNodeRelItemList": [{
            "wfNodeRelId": "ff80808164fe39160164fe95e0c5003e",
            "wfInfoId": "ff80808164fe39160164fe95e0b60035",
            "nodeId": "8a929ba662d28e280162d28e28340003",
            "parentNodeId": "-1",
            "state": "2"
        }, {
            "wfNodeRelId": "ff80808164fe39160164fe95e0c5003f",
            "wfInfoId": "ff80808164fe39160164fe95e0b60035",
            "nodeId": "8a929ba662d28e280162d28e28340005",
            "parentNodeId": "8a929ba662d28e280162d28e28340003",
            "state": "2"
        }, {
            "wfNodeRelId": "ff80808164fe39160164fe95e0c50040",
            "wfInfoId": "ff80808164fe39160164fe95e0b60035",
            "nodeId": "8a929ba662d28e280162d28e28340007",
            "parentNodeId": "8a929ba662d28e280162d28e28340005",
            "state": "2"
        }, {
            "wfNodeRelId": "ff80808164fe39160164fe95e0c60041",
            "wfInfoId": "ff80808164fe39160164fe95e0b60035",
            "nodeId": "8a929ba662d28e280162d28e28350009",
            "parentNodeId": "8a929ba662d28e280162d28e28340007",
            "state": "5"
        }, {
            "wfNodeRelId": "ff80808164fe39160164fe95e0c60042",
            "wfInfoId": "ff80808164fe39160164fe95e0b60035",
            "nodeId": "8a929ba662d28e280162d28e2835000b",
            "parentNodeId": "8a929ba662d28e280162d28e28340007",
            "state": "2"
        }, {
            "wfNodeRelId": "ff80808164fe39160164fe95e0c60043",
            "wfInfoId": "ff80808164fe39160164fe95e0b60035",
            "nodeId": "8a929ba662d28e280162d28e2836000f",
            "parentNodeId": "8a929ba662d28e280162d28e28340007",
            "state": "5"
        }, {
            "wfNodeRelId": "ff80808164fe39160164fe95e0c60044",
            "wfInfoId": "ff80808164fe39160164fe95e0b60035",
            "nodeId": "8a929ba662d28e280162d28e2836000f",
            "parentNodeId": "8a929ba662d28e280162d28e28350009",
            "state": "0"
        }, {
            "wfNodeRelId": "ff80808164fe39160164fe95e0c60045",
            "wfInfoId": "ff80808164fe39160164fe95e0b60035",
            "nodeId": "8a929ba662d28e280162d28e2836000f",
            "parentNodeId": "8a929ba662d28e280162d28e2835000b",
            "state": "2"
        }, {
            "wfNodeRelId": "ff80808164fe39160164fe95e0c60046",
            "wfInfoId": "ff80808164fe39160164fe95e0b60035",
            "nodeId": "8a929ba662d28e280162d28e28360011",
            "parentNodeId": "8a929ba662d28e280162d28e2836000f",
            "state": "2"
        }, {
            "wfNodeRelId": "ff80808164fe39160164fe95e0c60047",
            "wfInfoId": "ff80808164fe39160164fe95e0b60035",
            "nodeId": "8a929ba662d28e280162d28e283e0013",
            "parentNodeId": "8a929ba662d28e280162d28e28360011",
            "state": "2"
        }, {
            "wfNodeRelId": "ff80808164fe39160164fe95e0c60048",
            "wfInfoId": "ff80808164fe39160164fe95e0b60035",
            "nodeId": "8a929ba662d28e280162d28e283e0013",
            "parentNodeId": "8a929ba662d28e280162d28e2836000f",
            "state": "5"
        }]
    }
};

export default code;
